/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VenMuesFactura.java
 *
 * Created on May 18, 2010, 4:35:05 PM
 */

package View;

/**
 *
 * @author Scott
 */
public class VenMuesFactura extends javax.swing.JFrame {

    /** Creates new form VenMuesFactura */
    public VenMuesFactura() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jP_Fondo = new View.panelDefondo("fondo.jpg");
        jP_Superior = new View.panelDefondo("fondo3.png");
        jB_Cancelar = new javax.swing.JButton();
        jB_Aceptar = new javax.swing.JButton();
        jL_Factura = new javax.swing.JLabel();
        jT_NumFactura = new javax.swing.JTextField();
        jT_FacturaFinal = new javax.swing.JTextField();
        jB_Atras2 = new javax.swing.JButton();

        jP_Fondo.setBackground(new java.awt.Color(204, 204, 204));

        jP_Superior.setBackground(new java.awt.Color(102, 102, 102));

        javax.swing.GroupLayout jP_SuperiorLayout = new javax.swing.GroupLayout(jP_Superior);
        jP_Superior.setLayout(jP_SuperiorLayout);
        jP_SuperiorLayout.setHorizontalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 693, Short.MAX_VALUE)
        );
        jP_SuperiorLayout.setVerticalGroup(
            jP_SuperiorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 104, Short.MAX_VALUE)
        );

        jB_Cancelar.setText("Cancelar");

        jB_Aceptar.setText("Aceptar");

        jL_Factura.setFont(new java.awt.Font("Vani", 1, 12));
        jL_Factura.setForeground(new java.awt.Color(255, 255, 255));
        jL_Factura.setText("Numero de Factura:");

        jT_FacturaFinal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jT_FacturaFinalActionPerformed(evt);
            }
        });

        jB_Atras2.setText("Atras");
        jB_Atras2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB_Atras2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jP_FondoLayout = new javax.swing.GroupLayout(jP_Fondo);
        jP_Fondo.setLayout(jP_FondoLayout);
        jP_FondoLayout.setHorizontalGroup(
            jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jP_Superior, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jP_FondoLayout.createSequentialGroup()
                        .addComponent(jL_Factura)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jT_NumFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jT_FacturaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 648, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jP_FondoLayout.createSequentialGroup()
                        .addComponent(jB_Aceptar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_Cancelar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB_Atras2, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(35, 35, 35))
        );
        jP_FondoLayout.setVerticalGroup(
            jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jP_FondoLayout.createSequentialGroup()
                .addComponent(jP_Superior, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jL_Factura)
                    .addComponent(jT_NumFactura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jT_FacturaFinal, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jP_FondoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jB_Aceptar)
                    .addComponent(jB_Cancelar)
                    .addComponent(jB_Atras2))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jP_Fondo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jP_Fondo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-709)/2, (screenSize.height-488)/2, 709, 488);
    }// </editor-fold>//GEN-END:initComponents

    private void jT_FacturaFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jT_FacturaFinalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jT_FacturaFinalActionPerformed

    private void jB_Atras2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB_Atras2ActionPerformed
        this.dispose();
    }//GEN-LAST:event_jB_Atras2ActionPerformed

    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB_Aceptar;
    private javax.swing.JButton jB_Atras2;
    private javax.swing.JButton jB_Cancelar;
    private javax.swing.JLabel jL_Factura;
    private javax.swing.JPanel jP_Fondo;
    private javax.swing.JPanel jP_Superior;
    private javax.swing.JTextField jT_FacturaFinal;
    private javax.swing.JTextField jT_NumFactura;
    // End of variables declaration//GEN-END:variables

}
